<?
$menus = HDServices::contentServices()->categoriesRightMenu();

$route = 'bai-giang';
$title = 'Bài giảng';
switch ($type) {
    case 'lesson':
        $route = 'bai-giang';
        $title = 'Bài giảng';
        break;
    case 'video':
        $route = 'video';
        $title = 'Video';
        break;
    default:
        break;
}
?>
<div class="title">
    <label>{{$title}} theo Thể loại</label>
</div>
<div class="ct-box">
    <ul class="list-menu-right">
        @foreach($menus as $category)
        <li><a href="<?= route($route, array('category' => $category->id)) ?>"><?= $category->title ?></a></li>
        @endforeach
    </ul>
</div>